<template>
  <div>
    <h1>Vue Router Demo</h1>
    <div class="row">
      <div class="col-xs-2 col-xs-offset-2">
        <router-link to="/router1">router1组件</router-link>
        <br>
        <router-link to="/router2">router2组件</router-link>
      </div>
      <div class="col-xs-6">
        <div class="panel">
          <div class="panel-body">
            <!-- 指定组件该呈现的位置 -->
            <router-view></router-view>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
    export default {
        // eslint-disable-next-line vue/multi-word-component-names
        name: 'Router'
    }
</script>

<style scoped lang="less">

</style>